<template>
    <div>
        <video controls ref="video2" autoplay style="width: 50%">
            <source src type="video/mp4" />
        </video>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                video1:''
            }

        },
        created() {
            this.play();
        },
        methods:{
            play(){
                console.log(this.$route.query.url+'lallallall');
                this.video1= this.$route.query.url;
                this.$refs.video2.src =this.video1;
            }
        }
    }
</script>

